fix make install overwriting it's own files
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 18 Feb 2019 09:15:09 +0000 (11:15 +0200)
committerElan Ruusamäe <glen@pld-linux.org>
Mon, 18 Feb 2019 09:15:29 +0000 (11:15 +0200)
install: will not overwrite just-created ... ...

ApacheJServ.spec
doc-overwrite.patch [new file with mode: 0644]

index a0527d00939fae36023461e1c97c1631f5e3459c..fafc780257dcf798ccebea5bf287cc9f0b783dea 100644 (file)
@@ -5,7 +5,7 @@ Summary:        Servlet engine with support for the leading web server
 Summary(pl.UTF-8):     Silnik serwletów ze wsparciem dla wiodącego serwera WWW
 Name:          ApacheJServ
 Version:       1.1.2
-Release:       9
+Release:       10
 License:       freely distributable & usable
 Group:         Networking/Daemons
 Source0:       http://java.apache.org/jserv/dist/%{name}-%{version}.tar.gz
@@ -18,6 +18,7 @@ Patch0:               %{name}-enable-secret.patch
 Patch1:                %{name}-ac.patch
 Patch2:                %{name}-jre-env.patch
 Patch3:                %{name}-config.patch
+Patch4:                doc-overwrite.patch
 URL:           http://archive.apache.org/dist/java/jserv/
 BuildRequires: apache1-devel >= 1.3.9-8
 BuildRequires: autoconf
@@ -82,6 +83,7 @@ Moduł JServ dla Apache'a.
 %patch1 -p0
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 # servlet-2.0 is the highest version the jserv code compiles with
 servlet_jar=$(find-jar servlet-2.0)
diff --git a/doc-overwrite.patch b/doc-overwrite.patch
new file mode 100644 (file)
index 0000000..b6da840
--- /dev/null
@@ -0,0 +1,22 @@
+--- /home/users/glen/rpm/BUILD/x86_64-linux/ApacheJServ-1.1.2/docs/Makefile.am~        2019-02-18 11:14:18.000000000 +0200
++++ /home/users/glen/rpm/BUILD/x86_64-linux/ApacheJServ-1.1.2/docs/Makefile.am 2019-02-18 11:14:22.603006830 +0200
+@@ -7,10 +7,16 @@
+               protocol/*.html \
+               future/*.html
+-DOCFILES = $(strip $(shell ls $(EXTRA_DIST)))
+-
+ docdir = ${prefix}/docs
+-doc_DATA= $(DOCFILES)
++doc_DATA = *.html *.txt
++doc_imagesdir = ${prefix}/docs/images
++doc_images_DATA = images/*.gif
++doc_installdir = ${prefix}/docs/install
++doc_install_DATA = install/*.html
++doc_protocoldir = ${prefix}/docs/protocol
++doc_protocol_DATA = protocol/*.html
++doc_futuredir = ${prefix}/docs/future
++doc_future_DATA = future/*.html
+ create-dirs :
+       $(mkinstalldirs) $(DESTDIR)$(docdir) \
This page took 0.322888 seconds and 4 git commands to generate.