- don't build unpackaged stuff

- package just txt files from doc directory
This commit is contained in:
Miroslav Lichvar 2006-07-12 14:18:02 +00:00
parent 96db4d9544
commit da129e5a69
2 changed files with 10 additions and 9 deletions

View File

@ -1,13 +1,11 @@
--- slang-2.0.6/src/Makefile.in.makefile 2006-02-05 21:47:31.000000000 +0100
+++ slang-2.0.6/src/Makefile.in 2006-05-22 13:04:19.000000000 +0200
@@ -166,14 +166,16 @@
+++ slang-2.0.6/src/Makefile.in 2006-05-24 09:39:24.000000000 +0200
@@ -166,14 +166,14 @@
$(MKINSDIR) $(DEST_INCDIR)
$(DEST_LIBDIR):
$(MKINSDIR) $(DEST_LIBDIR)
-install-elf: elf install
+install-elf: elf $(DEST_LIBDIR) $(DEST_INCDIR)
+ $(INSTALL_DATA) $(SRCDIR)/slang.h $(DEST_INCDIR)
+ $(INSTALL_DATA) $(SRCDIR)/slcurses.h $(DEST_INCDIR)
+install-elf: elf install_basic_lib
-$(RM) $(DEST_LIBDIR)/$(ELFLIB)
-$(RM) $(DEST_LIBDIR)/$(ELFLIB_MAJOR)
@echo installing $(ELFLIB_MAJOR_MINOR) in $(DEST_LIBDIR)

View File

@ -1,7 +1,7 @@
Summary: The shared library for the S-Lang extension language.
Name: slang
Version: 2.0.6
Release: 2
Release: 3
License: GPL
Group: System Environment/Libraries
Source: ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.0/slang-%{version}.tar.bz2
@ -42,13 +42,12 @@ based on the S-Lang extension language.
%build
%configure --includedir=%{_includedir}/slang
make all
make -C src elf
%install
rm -rf ${RPM_BUILD_ROOT}
make -C src DESTDIR=${RPM_BUILD_ROOT} install-elf
cp src/objs/libslang.a ${RPM_BUILD_ROOT}%{_libdir}/libslang.a
%clean
rm -rf ${RPM_BUILD_ROOT}
@ -64,12 +63,16 @@ rm -rf ${RPM_BUILD_ROOT}
%files devel
%defattr(-,root,root)
%doc doc README
%doc doc/README doc/*/*.txt doc/*.txt
%{_libdir}/libslang*.a
%{_libdir}/libslang*.so
%{_includedir}/slang
%changelog
* Wed Jul 12 2006 Miroslav Lichvar <mlichvar@redhat.com> - 2.0.6-3
- don't build unpackaged stuff
- package just txt files from doc directory
* Tue May 23 2006 Peter Jones <pjones@redhat.com> - 2.0.6-2
- put static lib back; it is required by anaconda