Author: havner                       Date: Sat Aug 19 01:32:17 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- i dont know if that makes much sense, a package without itself, but
  gnome requirements for such little thing might be too much, and one
  might want to have at least configuration service
- gnome subpackage
- without gnome bcond

---- Files affected:
SPECS:
   configure-trackpoint.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/configure-trackpoint.spec
diff -u SPECS/configure-trackpoint.spec:1.2 SPECS/configure-trackpoint.spec:1.3
--- SPECS/configure-trackpoint.spec:1.2 Mon Aug 14 23:35:32 2006
+++ SPECS/configure-trackpoint.spec     Sat Aug 19 03:32:11 2006
@@ -1,10 +1,13 @@
 # $Revision$, $Date$
+#
+%bcond_without gnome   # dont build gnome configurator
+#
 %define                _name   trackpoint
-Summary:       GNOME TrackPoint configuration tool for IBM laptops
-Summary(pl):   Narzędzie konfiguracyjne TrackPointa do laptopów IBM
+Summary:       TrackPoint configuration service for IBM laptops
+Summary(pl):   Usługa konfigurująca TrackPointa do laptopów IBM
 Name:          configure-trackpoint
 Version:       0.3.3
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         X11/Applications
 Source0:       http://dl.sourceforge.net/tpctl/%{name}-%{version}.tar.gz
@@ -15,16 +18,28 @@
 URL:           http://tpctl.sourceforge.net/http://tpctl.sourceforge.net/
 BuildRequires: autoconf
 BuildRequires: automake
-BuildRequires: libgnomeui-devel
+%{?with_gnome:BuildRequires:   libgnomeui-devel}
 Requires(post,preun):  /sbin/chkconfig
 #Requires:     kernel >= 2.6.11 (with trackpoint subsystem via sysfs)
 ExclusiveArch: %{ix86}
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-GNOME TrackPoint configuration tool for IBM laptops.
+TrackPoint configuration service for IBM laptops.
 
 %description -l pl
+Usługa konfigurująca TrackPointa do laptopów IBM.
+
+%package gnome
+Summary:       GNOME TrackPoint configuration tool for IBM laptops
+Summary(pl):   Narzędzie konfiguracyjne TrackPointa do laptopów IBM
+Group:         X11/Applications
+Requires:      %{name} = %{version}-%{release}
+
+%description gnome
+GNOME TrackPoint configuration tool for IBM laptops.
+
+%description gnome -l pl
 Narzędzie konfiguracyjne TrackPointa do laptopów IBM.
 
 %prep
@@ -33,23 +48,28 @@
 %patch1 -p1
 
 %build
+%if %{with gnome}
 %{__aclocal}
 %{__autoconf}
 %{__automake}
 %configure
 %{__make}
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,%{_sysconfdir}/%{_name}}
 
+%if %{with gnome}
 %{__make} install \
        DESTDIR=$RPM_BUILD_ROOT
 
+ln -sf %{name}/%{_name}.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+%endif
+
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{_name}
 install etc/trackpoint/trackpoint.conf 
$RPM_BUILD_ROOT%{_sysconfdir}/%{_name}/%{_name}.conf
 > $RPM_BUILD_ROOT%{_sysconfdir}/%{_name}/%{_name}.conf.bak
-ln -sf %{name}/%{_name}.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -71,9 +91,14 @@
 %dir %{_sysconfdir}/%{_name}
 %attr (754,root,root) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/%{_name}/%{_name}.conf
 %attr (754,root,root) %ghost %{_sysconfdir}/%{_name}/%{_name}.conf.bak
+
+%if %{with gnome}
+%files gnome
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/*
 %{_desktopdir}/*
 %{_pixmapsdir}/*
+%endif
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -81,6 +106,13 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2006/08/19 01:32:11  havner
+- i dont know if that makes much sense, a package without itself, but
+  gnome requirements for such little thing might be too much, and one
+  might want to have at least configuration service
+- gnome subpackage
+- without gnome bcond
+
 Revision 1.2  2006/08/14 21:35:32  havner
 - icon name
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/configure-trackpoint.spec?r1=1.2&r2=1.3&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to