[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mandrake-cooker
Subject:    [Cooker] RPM build =?iso-8859-1?q?errors=3A=A0_Could_not_open_=25files_file?=
From:       Juan Luis Baptiste <juancho () phreaker ! net>
Date:       2004-08-02 22:34:15
Message-ID: 200408022234.15219.juancho () phreaker ! net
[Download RAW message or body]

Hi,

I'm having a little trouble generating the rpm for Mandrake 10 of an 
application I develop.  When building the rpm, I'm getting this error message 
for the translation files:

RPM build errors:
    Could not open %files file 
/home/juancho/rpm/BUILD/knetworkconf-0.6/knetworkconf.lang: No such file 
or directory

In the spec file I have this:

%find_lang %name

and

%files -f %name.lang

What I  understand is that the first line looks for translations in the 
form of 

%_docdir/doc/HTML/en/knetworkconf/knetworkconf.gmo

puts their location in knetworkconf.lang and adds them to the file list 
with the second line. For some reason the knetworkconf.lang file isn't 
being generated., any ideas why? here I also send the specfile, 
maybe you can see something I'm missing.


Cheers,
-- 
Juan Luis Baptiste
http://www.merlinux.org
http://knetworkconf.sf.net



["knetworkconf-mdk.spec" (text/plain)]

%define name knetworkconf
%define version 0.6
%define release 1mdk

Summary:   A KDE Control Center Module to configure Network settings.
Name:      %{name}
Version:   %{version}
Release:   %{release}
License: GPL
Url:       http://www.merlinux.org/knetworkconf/
Group:     Networking/Other
Source:    %{name}-%{version}.tar.bz2
BuildRoot:  %{_tmppath}/%{name}-buildroot
Requires: %_bindir/kdesu

%description
KNetworkConf is a KDE Control Center module to configure  the Network 
settings in a Linux machine. I developed it because I couldn't find any
application to do this from within KDE, and I think this is a "must have" 
app for a serious Desktop Enviroment like KDE.
KNetworkConf can configure installed network devices (you can't
add new ones for now), the default gateway,host and domain names,
add/remove DNS servers and add/remove static hosts. 

%prep
rm -rf $RPM_BUILD_ROOT

%setup 

./configure --prefix=%_prefix --mandir=%_mandir --datadir=%_datadir --libdir=%_libdir

%build

%make

%install
%makeinstall_std
#icons
mkdir -p %buildroot/{%_miconsdir,%{_prefix}/share/pixmaps/}
#cd $RPM_BUILD_DIR/%{name}-%{version}
install -m 644 %{name}/lo16-app-%{name}.png %buildroot/%{_miconsdir}/%{name}.png
install -m 644 %{name}/lo32-app-%{name}.png %buildroot/%{_iconsdir}/%{name}.png
install -m 644 %{name}/network_card.png \
%buildroot/%{_prefix}/share/pixmaps/network_card.png

#mkdir -p %buildroot/%_libdir/{kde3,pkgconfig}

# Menu
mkdir -p %buildroot/%_menudir
cat <<EOF > %buildroot/%_menudir/%name  
?package(local.kcm_knetworkconfmodule.desktop):needs="x11" \
section="System\/Configuration\/KDE\/Network" \ command="kcmshell \
kcm_knetworkconfmodule" icon="locolor/32x32/apps/knetworkconf.png" \ \
longtitle="Configure Network settings" title="Network Settings" \ \
kde_opt="Encoding=UTF-8\\nX-KDE-RootOnly=true\\nX-KDE-ModuleType=Library\\n \ \
X-KDE-Library=knetworkconfmodule\\nX-KDE-FactoryName=knetworkconfmodule\\nX-KDE-ParentApp=kcontrol\\n \
\ Type=Application\\nDocPath=knetworkconf/index.docbook\\nComment[es]=Configurar las \
propiedades de Red\\n \  Comment[de]=Netzwerkschn ittstellen \
konfigurieren\\nTerminal=0\\nName[es]=Propiedades de Red\\n \ \
Name[de]=Netzwerkschnittstellen konfigurieren\\nGenericName=Configure Network \
settings\\n \ GenericName[es]=Configurar las propiedades de \
red\\nKeywords=Network,DNS,routes,interfaces\\n" \ EOF
#make DESTDIR=$RPM_BUILD_ROOT bitsdata=$RPM_BUILD_ROOT/%{_datadir} \
bitssysconf=$RPM_BUILD_ROOT/%{_sysconfdir} install

%find_lang %name

%post
%{update_menus}

%postun
%{clean_menus}

%clean
rm -rf $RPM_BUILD_ROOT/*


%files -f %name.lang
#%files
%defattr(-,root,root,0755)
%doc README COPYING AUTHORS LEAME
%{_libdir}/menu/*
#1%{_libdir}/kde3/*.so.*
%{_libdir}/kde3/*.la
%{_libdir}/kde3/*.so
%{_libdir}/pkgconfig/*.pc
%{_iconsdir}/*.png
%{_miconsdir}/%{name}.png
%_datadir/applications/kde/*.desktop
%_datadir/pixmaps/network_card.png
%_datadir/icons/locolor/16x16/apps/*.png
%_datadir/icons/locolor/32x32/apps/*.png
%_docdir/doc/HTML/en/%{name}/
%_docdir/doc/HTML/de/%{name}/
%_docdir/doc/HTML/es/%{name}/
%_datadir/apps/%{name}/backends/*
%_datadir/apps/%{name}/pixmaps/*.png


%changelog
* Sun Feb 22 2004 Juan Luis Baptiste <juan.baptiste@kdemail.net> 0.6-1mdk
- 0.6

* Sun Feb 22 2004 Juan Luis Baptiste <juan.baptiste@kdemail.net> 0.5-1mdk
- 0.5

* Thu Oct 02 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.4.2-1mdk
- 0.4.2

* Fri Jul 18 2003 Laurent MONTEL <lmontel@mandrakesoft.com> 0.4.1-2mdk
- Rebuild

* Thu Apr 10 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.4.1-1mdk
- 0.4.1
- find lang macro

* Fri Mar 28 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.4-1mdk
- from Juan Luis Baptiste <juancho@linuxmail.org> :
	- Initial release.



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic