Permalink
Browse files

2009-03-23 Al Riddoch <alriddoch@googlemail.com>

	* Makefile.am: Don't install doc files. Just not needed.

	* mingw32-varconf.spec.in, configure.ac: Add a spec file for windows
	  build using mingw.
  • Loading branch information...
1 parent 3e7c0ea commit ca84923e4c3e2f6ae06a56e088fd736a7eb99564 @alriddoch alriddoch committed Sep 13, 2009
Showing with 64 additions and 0 deletions.
  1. +7 −0 ChangeLog
  2. +1 −0 configure.ac
  3. +56 −0 mingw32-varconf.spec.in
View
@@ -1,5 +1,12 @@
2009-03-23 Al Riddoch <alriddoch@googlemail.com>
+ * Makefile.am: Don't install doc files. Just not needed.
+
+ * mingw32-varconf.spec.in, configure.ac: Add a spec file for windows
+ build using mingw.
+
+2009-03-23 Al Riddoch <alriddoch@googlemail.com>
+
* configure.ac: Update the version to 0.6.6.
* NEWS: Update for release.
View
@@ -72,6 +72,7 @@ dnl Generate files
AC_CONFIG_FILES([
Makefile
varconf.spec
+ mingw32-varconf.spec
doc/Makefile
doc/old/Makefile
tests/Makefile
View
@@ -0,0 +1,56 @@
+%define __strip %{_mingw32_strip}
+%define __objdump %{_mingw32_objdump}
+%define _use_internal_dependency_generator 0
+%define __find_requires %{_mingw32_findrequires}
+%define __find_provides %{_mingw32_findprovides}
+
+%define name mingw32-varconf
+%define version @VERSION@
+%define release 1
+%define libsuffix @VARCONF_LIB_SUFFIX@
+
+Summary: A config handling library.
+Name: %{name}
+Version: %{version}
+Release: %{release}
+License: LGPL
+Group: System Environment/Libraries
+URL: http://www.worldforge.org/dev/eng/libraries/varconf
+Packager: Al Riddoch <alriddoch@googlemail.com>
+Vendor: WorldForge
+Distribution: Mason
+Source: varconf-%{version}.tar.bz2
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildArch: noarch
+BuildRequires: mingw32-filesystem >= 49
+BuildRequires: mingw32-gcc
+BuildRequires: mingw32-binutils
+
+%description
+@PACKAGE@ is a configuration system originally designed for the STAGE
+server. @PACKAGE@ can parse configuration files, command-line arguments
+and environment variables. It supports callbacks through libsigc++ 2.0.x
+and can store configuration data in configuration objects or one global
+configuration instance.
+
+%prep
+%setup -q -n varconf-%{version}
+
+%build
+PKG_CONFIG_LIBDIR=/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig \
+ %{_mingw32_configure} --enable-static --disable-shared
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+rm $RPM_BUILD_ROOT%{_mingw32_libdir}/lib*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root)
+%{_mingw32_libdir}/lib*.a
+%{_mingw32_libdir}/pkgconfig/*
+%{_mingw32_includedir}/varconf%{libsuffix}

0 comments on commit ca84923

Please sign in to comment.