- fixed build, files and BRs
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 25 Nov 2003 20:51:19 +0000 (20:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- before sending to builders, either change .spec name or Name!

Changed files:
    gbiff2.spec -> 1.19

gbiff2.spec

index f411903..0b61398 100644 (file)
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without gnome   # without gnome applet support
+#
 Summary:       gbiff checks and informs for mail
 Summary(pl):   Sprawdza i informuje o nowej poczcie
 Name:           gbiff2
@@ -7,17 +11,13 @@ License:        GPL
 Group:          Applications/Mail
 Source0:        http://www.loria.fr/~rougier/gbiff/downloads/%{name}-%{version}.tar.gz
 URL:           http://www.loria.fr/~rougier/gbiff/index.php
-BuildRequires: gnome-libs-devel >= 1.2.13
-BuildRequires: gtk+-devel >= 1.2.5
-BuildRequires: automake
-BuildRequires: autoconf
-BuildRequires: libtool
-BuildRequires: perl
-BuildRequires: ORBit-devel
+%{?with_gnome:BuildRequires:   gnome-panel-devel}
+BuildRequires: gtk+2-devel >= 2.0.0
+BuildRequires: libglade2-devel >= 1.99.6
+BuildRequires: openssl-devel
+%{?with_gnome:Requires(post):  GConf2}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define                _sysconfdir     /etc/X11/GNOME
-
 %description
 gbiff checks for mail within afile, a qmail or MH style dir, or on a
 POP3 server. It can display headers (number, sender, subject, and
@@ -32,13 +32,9 @@ temat i dat
 %setup -q
 
 %build
-rm -f missing
-%{__libtoolize}
-%{__aclocal}
-%{__autoconf}
-%{__automake}
-CFLAGS="%{rpmcflags} -I /usr/include/orbit-1.0"
-%configure
+%configure \
+       %{?with_gnome:--with-gnome} \
+       --disable-schema-install
 
 %{__make}
 
@@ -47,16 +43,28 @@ rm -rf $RPM_BUILD_ROOT
 
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT \
-       sysdir=%{_applnkdir}/Network/Mail
+       GCONFTOOL=true
+
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%if %{with gnome}
+%post
+%gconf_schema_install
+%endif
+
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS README ChangeLog THANKS
-%attr(755,root,root) %{_bindir}/*
-%{_applnkdir}/Network/Mail/*.desktop
-%{_pixmapsdir}/%{name}
-%{_datadir}/sounds/%{name}
-%{_sysconfdir}/CORBA/servers/*
+%doc AUTHORS ChangeLog NEWS README THANKS
+%attr(755,root,root) %{_bindir}/gbiff2
+%{_datadir}/gbiff2
+%{_datadir}/sounds/gbiff2
+%{_pixmapsdir}/*.png
+%{_mandir}/man1/*
+%if %{with gnome}
+%{_sysconfdir}/gconf/schemas/*.schemas
+%{_libdir}/bonobo/servers/*.server
+%{_datadir}/gnome-2.0/ui/*.xml
+%endif
This page took 0.075231 seconds and 4 git commands to generate.