diff options
| author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-07-09 15:02:24 -0400 |
|---|---|---|
| committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2008-07-09 15:02:24 -0400 |
| commit | efc81cbd4f21fcbaba2edc34f173d512c537c7f2 (patch) | |
| tree | fe1a9e974ad865fad87898563bcf88c43e8e4f85 | |
| parent | a25d7824c8b5046c135e2db0d3ac1f4f7c571ce3 (diff) | |
- packaging changes: drop the -0 from the distdir and tarball, add a .spec file
| -rw-r--r-- | Makefile.am | 6 | ||||
| -rw-r--r-- | configure.ac | 7 | ||||
| -rw-r--r-- | slapi-nis.spec | 44 |
3 files changed, 53 insertions, 4 deletions
diff --git a/Makefile.am b/Makefile.am index 844df10..f494a0b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,10 +1,10 @@ -EXTRA_DIST = STATUS doc/*.txt doc/migrate-nis.sh doc/*.ldif.in doc/index*.ldif +EXTRA_DIST = COPYING STATUS slapi-nis.spec doc/*.txt doc/migrate-nis.sh doc/*.ldif.in doc/index*.ldif SUBDIRS = src tests VERSION=@PACKAGE_VERSION@ RELEASE=0 -GITTAG=slapi-nis-$(VERSION)-$(RELEASE) -distdir=slapi-nis-$(VERSION)-$(RELEASE) +GITTAG=slapi-nis-$(VERSION) +distdir=slapi-nis-$(VERSION) tag: git tag $(GITTAG) diff --git a/configure.ac b/configure.ac index f864337..48edf88 100644 --- a/configure.ac +++ b/configure.ac @@ -1,9 +1,14 @@ -AC_INIT(slapi-nis,0.1) +AC_INIT(slapi-nis,0.2) AM_INIT_AUTOMAKE(foreign) AC_PROG_LIBTOOL AM_CONDITIONAL(GCC,[test x$GCC = xyes]) AM_MAINTAINER_MODE +specversion=`awk '/^Version:/ {print $NF}' $srcdir/slapi-nis.spec | head -n1` +if test x$specversion != x$PACKAGE_VERSION ; then + AC_MSG_ERROR([Package version skew between slapi-nis.spec and configure.ac.]) +fi + AC_ARG_WITH(tcp-wrappers, AS_HELP_STRING([--with-tcp-wrappers=AUTO] [use tcp-wrappers]), diff --git a/slapi-nis.spec b/slapi-nis.spec new file mode 100644 index 0000000..8584d6c --- /dev/null +++ b/slapi-nis.spec @@ -0,0 +1,44 @@ +Name: slapi-nis +Version: 0.2 +Release: 1%{?dist} +Summary: A NIS server plugin for Fedora and Red Hat Directory Server + +Group: System Environment/Daemons +License: GPLv2 +URL: http://slapi-nis.fedoraproject.org/ +Source0: http://people.redhat.com/~nalin/slapi-nis/slapi-nis-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: fedora-ds-base-devel + +%description +This slapi-nis package contains two plugins which aim to ease the +transition of a network from NIS to LDAP. The NIS Server plugin +(nisserver-plugin) allows the directory server itself to act as a NIS +server, and the Schema Compatibility plugin (schemacompat-plugin) +allows the directory server to provide modified views of data stored +in the directory. + +%prep +%setup -q + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +rm $RPM_BUILD_ROOT/%{_libdir}/dirsrv/plugins/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc COPYING STATUS doc/*.txt doc/*.ldif +%{_libdir}/dirsrv/plugins/*.so + +%changelog +* Wed Jul 9 2008 Nalin Dahyabhai <nalin@redhat.com> - 0.1-1 +- initial package |
