]> git.pld-linux.org Git - packages/control-center.git/blobdiff - control-center.spec
- change path to wm-properties files from $(datadir)/gnome/wm-properties to
[packages/control-center.git] / control-center.spec
index ff358e3488f9cf5944e3a00fa178d02dff3265e6..d0198d92495f30257dedc658490ad88778a361bb 100644 (file)
@@ -1,39 +1,58 @@
 Summary:       GNOME control center
 Summary(pl):   Centrum kontroli GNOME
 Name:          control-center
-Version:       1.0.5
-Release:       2
-Copyright:     LGPL
-Group:         X11/Libraries
-Group(pl):     X11/Biblioteki
-Source:                ftp://ftp.gnome.org/pub/GNOME/source/%{name}-%{version}.tar.gz
-Patch0:                control-center-DESTDIR.patch
+Version:       1.4.0.1
+Release:       1
+Epoch:         1
+License:       GPL
+Group:         X11/Applications
+Group(de):     X11/Applikationen
+Group(pl):     X11/Aplikacje
+Source0:       ftp://ftp.gnome.org/pub/GNOME/stable/sources/control-center/%{name}-%{version}.tar.gz
+Patch0:                %{name}-macros.patch
+Patch1:                %{name}-applnk.patch
+Patch2:                %{name}-gettext.patch
 URL:           http://www.gnome.org/
-Requires:      gtk+ = 1.2.1
-Requires:      xscreensaver >= 2.34
-BuildRoot:     /tmp/%{name}-%{version}-root
+Icon:          control-center.gif
+BuildRequires: ORBit-devel
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: esound-devel >= 0.2.5
+BuildRequires: gdk-pixbuf-devel >= 0.7.0
+BuildRequires: gnome-libs-devel >= 1.2.12-3
+BuildRequires: gtk+-devel >= 1.1.16
+BuildRequires: imlib-devel >= 1.8.2
+BuildRequires: zlib-devel
+BuildRequires: gettext-devel
+BuildRequires: xml-i18n-tools
+BuildRequires: findutils
+BuildRequires: flex
+BuildRequires: bison
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Obsoletes:     gnome
 
+%define                _prefix         /usr/X11R6
+%define                _sysconfdir     /etc/X11/GNOME
+
 %description
 A Configuration tool for easily setting up your GNOME environment.
-
-GNOME is the GNU Network Object Model Environment. That's a fancy name but
-really GNOME is a nice GUI desktop environment. It makes using your computer
-easy, powerful, and easy to configure.
+GNOME is the GNU Network Object Model Environment. That's a fancy name
+but really GNOME is a nice GUI desktop environment. It makes using
+your computer easy, powerful, and easy to configure.
 
 %description -l pl
-Narzêdzie do ³atwej konfiguracji twojego ¶rodowiska GNOME.
-
-GNOME to Obiektowe ¦rodowisko Sieciowe na licencji GNU (GNU Network Object
-Model Environment). Nazwa jest do¶æ dziwaczna, ale w rzeczywisto¶ci jest to
-mi³e ¶rodowisko pracy. Powoduje, ¿e u¿ywanie komputera jest proste, wydajne
-i ³atwe w konfiguracji.
+Narzêdzie do ³atwej konfiguracji twojego ¶rodowiska GNOME. GNOME to
+Obiektowe ¦rodowisko Sieciowe na licencji GNU (GNU Network Object
+Model Environment). Nazwa jest do¶æ dziwaczna, ale w rzeczywisto¶ci
+jest to mi³e ¶rodowisko pracy. Powoduje, ¿e u¿ywanie komputera jest
+proste, wydajne i ³atwe w konfiguracji.
 
 %package devel
 Summary:       GNOME control-center includes
 Summary(pl):   Pliki nag³ówkowe centrum kontroli GNOME
-Group:         X11/Libraries
-Group(pl):     X11/Biblioteki
+Group:         X11/Development/Libraries
+Group(de):     X11/Entwicklung/Libraries
+Group(pl):     X11/Programowanie/Biblioteki
 Requires:      %{name} = %{version}
 
 %description devel
@@ -45,99 +64,81 @@ Rzeczy potrzebne do kompilacji.
 %package static
 Summary:       GNOME control-center static libraries
 Summary(pl):   Statyczne biblioteki dla centrum kontroli GNOME
-Group:         X11/Libraries
-Group(pl):     X11/Biblioteki
+Group:         X11/Development/Libraries
+Group(de):     X11/Entwicklung/Libraries
+Group(pl):     X11/Programowanie/Biblioteki
 Requires:      %{name}-devel = %{version}
 
 %description static
 GNOME control-center static libraries.
 
 %description -l pl
-Statyczne biblioteki dla centrum kontroli GNOME
+Statyczne biblioteki dla centrum kontroli GNOME.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure \
-       --prefix=/usr/X11R6 \
-       --sysconfdir=/etc
+rm missing
+xml-i18n-toolize --copy --force
+gettextize --copy --force
+automake -a -c
+aclocal -I macros
+autoconf
+%configure 
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make DESTDIR=$RPM_BUILD_ROOT install
+%{__make} DESTDIR=$RPM_BUILD_ROOT install
 
-strip $RPM_BUILD_ROOT/usr/X11R6/lib/lib*.so.*.*
+rm -f $RPM_BUILD_ROOT%{_datadir}/control-center/Desktop/screensaver-properties.desktop \
+       $RPM_BUILD_ROOT%{_applnkdir}/Settings/Desktop/screensaver-properties.desktop \
+       $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME/Desktop/screensaver-properties.desktop
+       
+mv -f $RPM_BUILD_ROOT%{_applnkdir}/Settings/*.desktop \
+      $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME
+cp    $RPM_BUILD_ROOT%{_applnkdir}/Settings/Desktop/*.desktop \
+      $RPM_BUILD_ROOT%{_applnkdir}/Settings/GNOME/Desktop
+
+find $RPM_BUILD_ROOT%{_applnkdir} -name .directory | xargs | rm -f
 
 gzip -9nf AUTHORS ChangeLog NEWS README
 
+%find_lang %{name} --with-gnome
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-/etc/CORBA/servers/*
-%attr(755,root,root) /usr/X11R6/bin/*
-%attr(755,root,root) /usr/X11R6/lib/lib*.so.*.*
-
-/usr/X11R6/share/control-center
-/usr/X11R6/share/gnome/
-/usr/X11R6/share/pixmaps/*
-
-%lang(cs) /usr/X11R6/share/locale/cs/LC_MESSAGES/control-center.mo
-%lang(da) /usr/X11R6/share/locale/da/LC_MESSAGES/control-center.mo
-%lang(de) /usr/X11R6/share/locale/de/LC_MESSAGES/control-center.mo
-%lang(es) /usr/X11R6/share/locale/es/LC_MESSAGES/control-center.mo
-%lang(fi) /usr/X11R6/share/locale/fi/LC_MESSAGES/control-center.mo
-%lang(fr) /usr/X11R6/share/locale/fr/LC_MESSAGES/control-center.mo
-%lang(ga) /usr/X11R6/share/locale/ga/LC_MESSAGES/control-center.mo
-%lang(hu) /usr/X11R6/share/locale/hu/LC_MESSAGES/control-center.mo
-%lang(it) /usr/X11R6/share/locale/it/LC_MESSAGES/control-center.mo
-%lang(ja) /usr/X11R6/share/locale/ja/LC_MESSAGES/control-center.mo
-%lang(ko) /usr/X11R6/share/locale/ko/LC_MESSAGES/control-center.mo
-%lang(no) /usr/X11R6/share/locale/no/LC_MESSAGES/control-center.mo
-%lang(pl) /usr/X11R6/share/locale/pl/LC_MESSAGES/control-center.mo
-%lang(pt) /usr/X11R6/share/locale/pt/LC_MESSAGES/control-center.mo
-%lang(ru) /usr/X11R6/share/locale/ru/LC_MESSAGES/control-center.mo
-%lang(sv) /usr/X11R6/share/locale/sv/LC_MESSAGES/control-center.mo
+%{_sysconfdir}/CORBA/servers/*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+
+%{_datadir}/control-center
+%{_applnkdir}/Settings/GNOME
+%dir %{_datadir}/gnome/wm-properties
+%{_pixmapsdir}/*
 
 %files devel
 %defattr(644,root,root,755)
 %doc *gz
-%attr(755,root,root) /usr/X11R6/lib/lib*.so
-/usr/X11R6/share/idl/*
-/usr/X11R6/include/*
-%attr(755,root,root) /usr/X11R6/lib/*.sh
+%attr(755,root,root) %{_libdir}/lib*.so
+%attr(755,root,root) %{_libdir}/lib*.la
+%attr(755,root,root) %{_libdir}/*.sh
+%{_datadir}/idl/*
+%{_datadir}/omf/*
+%{_includedir}/*
 
 %files static
-%attr(644,root,root) /usr/X11R6/lib/lib*.a
-
-%changelog
-* Thu Mar 25 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.0.4-1]
-- updated spec for latest version.
-
-* Tue Jan 26 1999 Micha³ Kuratczyk <kurkens@polbox.com>
-  [0.99-2]
-- added pl translations
-
-* Wed Jan 06 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [0.99-1]
-- added -q %setup parameter,
-- added LDFLAGS="-s" to ./configure enviroment,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- added static subpackage,
-- added full %attr description in %files,
-- added %lang macros for
-  /usr/X11R6/share/locale/*/LC_MESSAGES/control-center.mo files,
-- added stripping shared libraries.
-
-* Wed Dec 16 1998 Jonathan Blandford <jrb@redhat.com>
-- Created for the new control-center branch
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
This page took 0.091099 seconds and 4 git commands to generate.