]> git.draconx.ca Git - gob-dx.git/blobdiff - gob.spec.in
Release 1.0.12
[gob-dx.git] / gob.spec.in
index c4ed4e749f231d351a37842e99a11093609ea505..e86c351e4e722d784d15f085f937dc956a642692 100644 (file)
@@ -1,48 +1,48 @@
-%define  ver     @VERSION@
-%define  rel     SNAP
-%define  prefix  /usr
-
-Summary: GOB, The GTK+ Object Builder
-Name: gob
-Version: %ver
-Release: %rel
-Copyright: GPL
-Group: Development/Tools
-Source: gob-%{ver}.tar.gz
-Url: http://www.5z.com/jirka/linux.html#gob
-BuildRoot: /var/tmp/gob-%{ver}-root
-Prefix: %prefix
+Summary:        GOB, The GTK+ Object Builder
+Name:           gob
+Version:        @VERSION@
+Release:        SNAP
+Copyright:      GPL
+Group:          Development/Tools
+Source:         %{name}-%{version}.tar.gz
+Url:            http://www.5z.com/jirka/linux.html#gob
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+Packager:       Gnome Packaging Project <http://developer.gnome.org/projects/gpp/>
 
 %description
 GOB is a simple preprocessor for making GTK+ objects.  It makes objects
 from a single file which has inline C code so that you don't have to edit
 the generated files.  Syntax is somewhat inspired by java and yacc.
 
-%changelog
-* Tue Feb 7 2000  George Lebl <jirka@5z.com>
-- added %{prefix}/share/aclocal/* to %files
-* Tue Dec 14 1999  George Lebl <jirka@5z.com>
-- added the examples dir to the %doc
-* Mon Aug 16 1999  George Lebl <jirka@5z.com>
-- added gob.spec.in file
-
 %prep
 %setup
 
 %build
-./configure --prefix=%prefix
+CFLAGS="$RPM_OPT_FLAGS" ./configure \
+    --prefix=%{_prefix} \
+    --sysconfdir=%{_sysconfdir} \
+    --bindir=%{_bindir} \
+    --libdir=%{_libdir} \
+    --includedir=%{_includedir} \
+    --datadir=%{_datadir} \
+    --mandir=%{_mandir} \
+    --infodir=%{_infodir} %{_target_platform}
+
 
-if [ "$SMP" != "" ]; then
-  (make "MAKE=make -k -j $SMP"; exit 0)
-  make
-else
-  make
-fi
+make
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-make prefix=$RPM_BUILD_ROOT%{prefix} install
+make prefix=$RPM_BUILD_ROOT%{_prefix} \
+    sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
+    bindir=$RPM_BUILD_ROOT%{_bindir} \
+    libdir=$RPM_BUILD_ROOT%{_libdir} \
+    includedir=$RPM_BUILD_ROOT%{_includedir} \
+    datadir=$RPM_BUILD_ROOT%{_datadir} \
+    mandir=$RPM_BUILD_ROOT%{_mandir} \
+    infodir=$RPM_BUILD_ROOT%{_infodir} install
+
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -53,6 +53,21 @@ rm -rf $RPM_BUILD_ROOT
 %doc README AUTHORS COPYING NEWS TODO ChangeLog
 %doc examples
 
-%{prefix}/bin/*
-%{prefix}/man/man1/*
-%{prefix}/share/aclocal/*
+%{_bindir}/*
+%{_mandir}/man1/*
+%{_datadir}/aclocal/*
+
+
+%changelog
+* Wed Jun 27 2001 Spider <spider@darkmere>
+- remake in style of gpp
+- Get clean out path's and the rest. blah.
+
+* Tue Feb 7 2000  George Lebl <jirka@5z.com>
+- added %{prefix}/share/aclocal/* to %files
+
+* Tue Dec 14 1999  George Lebl <jirka@5z.com>
+- added the examples dir to the %doc
+
+* Mon Aug 16 1999  George Lebl <jirka@5z.com>
+- added gob.spec.in file