[Lemon-commits] [lemon_svn] ladanyi: r1963 - hugo/trunk

Lemon SVN svn at lemon.cs.elte.hu
Mon Nov 6 20:49:06 CET 2006


Author: ladanyi
Date: Tue Jun 14 12:26:37 2005
New Revision: 1963

Added:
   hugo/trunk/lemon.spec.in
Modified:
   hugo/trunk/Makefile.am
   hugo/trunk/configure.ac

Log:
added support for generating rpms (completely untested though)

Modified: hugo/trunk/Makefile.am
==============================================================================
--- hugo/trunk/Makefile.am	(original)
+++ hugo/trunk/Makefile.am	Tue Jun 14 12:26:37 2005
@@ -2,6 +2,7 @@
 
 EXTRA_DIST = \
 	LICENSE \
+	lemon.spec \
 	autopackage/default.apspec.in \
 	config/cxxflags.m4 \
 	config/lp.m4 \
@@ -52,4 +53,16 @@
 	$(MAKE) $(AM_MAKEFLAGS) maintainer-clean
 	-rm -f $(MRPROPERFILES)
 
-.PHONY: doc benchmark mrproper
+rpm: dist
+	rpmbuild -ta $(PACKAGE)-$(VERSION).tar.gz
+	@rm -f $(PACKAGE)-$(VERSION).tar.gz
+
+dist-bz2: dist
+	zcat $(PACKAGE)-$(VERSION).tar.gz | \
+	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
+
+distcheck-bz2: distcheck
+	zcat $(PACKAGE)-$(VERSION).tar.gz | \
+	bzip2 --best -c > $(PACKAGE)-$(VERSION).tar.bz2
+
+.PHONY: doc benchmark mrproper rpm dist-bz2 distcheck-bz2

Modified: hugo/trunk/configure.ac
==============================================================================
--- hugo/trunk/configure.ac	(original)
+++ hugo/trunk/configure.ac	Tue Jun 14 12:26:37 2005
@@ -48,6 +48,7 @@
 
 AC_CONFIG_FILES([
 Makefile
+lemon.spec
 autopackage/default.apspec
 doc/Makefile
 doc/Doxyfile

Added: hugo/trunk/lemon.spec.in
==============================================================================
--- (empty file)
+++ hugo/trunk/lemon.spec.in	Tue Jun 14 12:26:37 2005
@@ -0,0 +1,43 @@
+Summary: A C++ template library aimed at combinatorial optimization tasks.
+Name: @PACKAGE_TARNAME@
+Version: @PACKAGE_VERSION@
+Release: 1
+License: Boost
+URL: http://lemon.cs.elte.hu
+Source0: %{name}-%{version}.tar.gz
+Group: Development/Libraries
+BuildRoot: %{_tmppath}/%{name}-root
+Requires: glpk
+BuildRequires: glpk-devel
+
+%description
+LEMON stands for Library of Efficient Models and
+Optimization in Networks. It is a C++ template
+library aimed at combinatorial optimization tasks,
+especially those working with graphs and networks.
+
+%prep
+%setup -q
+
+%build
+%configure
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+%{_includedir}/%{name}
+%{_libdir}/lib*
+%{_libdir}/pkgconfig/lemon.pc
+%doc %{_datadir}/doc/%{name}-%{version}
+%doc AUTHORS COPYING LICENSE NEWS README



More information about the Lemon-commits mailing list