]> git.pld-linux.org Git - packages/file-roller.git/blobdiff - file-roller.spec
- missing umask 022
[packages/file-roller.git] / file-roller.spec
index dd25510a3d68e75a039578207e946aa7d4db8e4e..c2694eb34f6d418237fdfb46da3b642b127c13d9 100644 (file)
-%define release 3
-%define prefix  /usr
-%define name   file-roller
-%define version 1.0
-
-Summary:       An archive manager for GNOME.
-Name:          %{name}
-Version:       %{version}
-Release:       %{release}
-Copyright:     GPL
-Vendor:                GNOME
-URL:           http://fileroller.sourceforge.net
-Group:         Applications/Archiving
-Source0:       %{name}-%{version}.tar.gz
-Packager:       Paolo Bacchilega <paolo.bacch@tin.it>
-BuildRoot:     %{_builddir}/%{name}-%{version}-root
-Requires:       glib >= 1.2.9
-Requires:       gtk+ >= 1.2.9
-Requires:      gnome-libs >= 1.2.0
-Requires:      gdk-pixbuf >= 0.9.0
-Requires:      libglade >= 0.14
-Requires:      oaf >= 0.6.5
-Requires:      bonobo >= 1.0.0
-BuildRequires: glib-devel >= 1.2.9
-BuildRequires: gtk+-devel >= 1.2.9
-BuildRequires: gnome-libs-devel >= 1.2.0
-BuildRequires: gdk-pixbuf-devel >= 0.9.0
-BuildRequires: libglade-devel >= 0.14
-BuildRequires: oaf-devel >= 0.6.5
-BuildRequires: bonobo-devel >= 1.0.0
-Docdir:         %{prefix}/share/doc
+Summary:       An archive manager for GNOME
+Summary(pl):   Zarz±dca archiwów dla GNOME
+Summary(pt_BR):        Gerenciador de arquivos compactados para o GNOME
+Name:          file-roller
+Version:       2.10.1
+Release:       1
+License:       GPL v2
+Group:         X11/Applications
+Source0:       http://ftp.gnome.org/pub/gnome/sources/file-roller/2.10/%{name}-%{version}.tar.bz2
+# Source0-md5: f5432a9071b425f637a1796f99b95d82
+Patch0:                %{name}-desktop.patch
+URL:           http://www.gnome.org/
+BuildRequires: GConf2-devel >= 2.10.0
+BuildRequires: autoconf >= 2.52
+BuildRequires: automake
+BuildRequires: gnome-vfs2-devel >= 2.10.0-2
+BuildRequires: gtk+2-devel >= 2:2.6.4
+BuildRequires: libglade2-devel >= 1:2.5.1
+BuildRequires: libgnomeui-devel >= 2.10.0-2
+BuildRequires: libtool
+BuildRequires: nautilus-devel >= 2.10.0-3
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.196
+Requires(post,preun):  GConf2
+Requires(post,postun): desktop-file-utils
+Requires(post,postun): scrollkeeper
+Requires:      gnome-vfs2 >= 2.10.0-2
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-File Roller is an archive manager for the GNOME environment. With File Roller
-you can : create and modify archives; view the content of an archive; view a 
-file contained in the archive; extract files from the archive.
-File Roller is only a front-end (a graphical interface) to various archiving 
-programs. The supported file types are :
-    * Tar archives uncompressed (.tar) or compressed with
-          * gzip (.tar.gz , .tgz)
-          * bzip (.tar.bz , .tbz)
-          * bzip2 (.tar.bz2 , .tbz2)
-          * compress (.tar.Z , .taz)
-          * lzop (.tar.lzo , .tzo)
-    * Zip archives (.zip)
-    * Jar archives (.jar , .ear , .war)
-    * Lha archives (.lzh)
-    * Rar archives (.rar)
-    * Single files compressed with gzip, bzip, bzip2, compress, lzop
+File Roller is an archive manager for the GNOME environment. With File
+Roller you can: create and modify archives; view the content of an
+archive; view a file contained in the archive; extract files from the
+archive. File Roller is only a front-end (a graphical interface) to
+various archiving programs. The supported file types are:
+- Tar archives uncompressed (.tar) or compressed with
+       - gzip (.tar.gz , .tgz)
+       - bzip (.tar.bz , .tbz)
+       - bzip2 (.tar.bz2 , .tbz2)
+       - compress (.tar.Z , .taz)
+       - lzop (.tar.lzo , .tzo)
+- Zip archives (.zip)
+- Jar archives (.jar , .ear , .war)
+- Lha archives (.lzh)
+- Rar archives (.rar)
+- Single files compressed with gzip, bzip, bzip2, compress, lzop.
+
+%description -l pl
+File Roller to zarz±dca archiwów dla ¶rodowiska GNOME. Przy jego
+pomocy mo¿na: tworzyæ i modyfikowaæ archiwa, ogl±daæ ich zawarto¶æ,
+ogl±daæ poszczególne pliki zawarte w archiwum oraz rozpakowywaæ pliki
+z archiwów. File Roller jest tylko interfejsem graficznym do
+w³a¶ciwych programów archiwizuj±cych. Obs³ugiwane typy plików to:
+- archiwa tar nieskompresowane (.tar) lub skompresowane programami:
+       - gzip (.tar.gz, .tgz)
+       - bzip (.tar.bz, .tbz)
+       - bzip2 (.tar.bz2, .tbz2)
+       - compress (.tar.Z, .taz)
+       - lzop (.tar.lzo, .tzo)
+- archiwa zip (.zip)
+- archiwa jar (.jar, .ear, .war)
+- archiwa lha (.lzh)
+- archiwa rar (.rar)
+- pojedyncze pliki skompresowane programami gzip, bzip, bzip2,
+  compress, lzop.
+
+%description -l pt_BR
+File Roller é um gerenciador de pacotes de arquivos compactados para o
+ambiente GNOME. Com ele é possível criar arquivos, visualizar o
+conteúdo de arquivos existentes, visualizar um arquivo contido em um
+pacote e extrair os arquivos de um pacote.
 
 %prep
-%setup 
+%setup -q
+%patch0 -p1
 
 %build
-%configure
-make
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure \
+       --disable-schemas-install \
+       --disable-static
+
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       omf_dest_dir=%{_omf_dest_dir}/%{name} \
+       GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
+
+rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
+rm -f $RPM_BUILD_ROOT%{_libdir}/bonobo/*.la
+rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/*.la
+rm -rf $RPM_BUILD_ROOT%{_datadir}/{mime-info,application-registry}
+
+%find_lang %{name} --with-gnome
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
-%defattr(-,root,root)
-%{_bindir}/file-roller
-%{_bindir}/fr-document-viewer
-%{_datadir}/gnome/apps/Utilities/file-roller.desktop
-%{_datadir}/file-roller/glade/*.glade
-%{_datadir}/file-roller/icons/*.xpm
-%{_datadir}/file-roller/scripts/Add_to_archive
-%{_datadir}/file-roller/scripts/Extract_to
-%{_datadir}/file-roller/scripts/Extract_here
-%doc %{_datadir}/file-roller/scripts/README
-%{_datadir}/locale/*/LC_MESSAGES/file-roller.mo
-%{_datadir}/appliation-registry/file-roller.applications
-%{_datadir}/mime-info/file-roller.*
-%{_datadir}/pixmaps/file-roller.png
-%doc AUTHORS NEWS README COPYING
+%post
+umask 022
+%gconf_schema_install /etc/gconf/schemas/file-roller.schemas
+/usr/bin/scrollkeeper-update -q
+/usr/bin/update-desktop-database
+
+%banner %{name} -e << EOF
+For fully operational File Roller you need to install archiving
+programs described in README.
+EOF
+
+%preun
+if [ $1 = 0 ]; then
+       %gconf_schema_uninstall /etc/gconf/schemas/file-roller.schemas
+fi
+
+%postun
+if [ $1 = 0 ]; then
+       umask 022
+       /usr/bin/scrollkeeper-update -q
+       /usr/bin/update-desktop-database
+fi
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS NEWS README
+%attr(755,root,root) %{_bindir}/file-roller
+%attr(755,root,root) %{_libdir}/bonobo/*.so
+%attr(755,root,root) %{_libdir}/nautilus/extensions-1.0/*.so
+%{_libdir}/bonobo/servers/*.server
+%{_datadir}/file-roller
+%{_desktopdir}/*
+%{_pixmapsdir}/file-roller.png
+%{_omf_dest_dir}/%{name}
+%{_sysconfdir}/gconf/schemas/*
This page took 0.093081 seconds and 4 git commands to generate.