[projects/template-specs] Adapterize
baggins
baggins at pld-linux.org
Sun Sep 28 14:06:00 CEST 2025
commit 51a701d74482faf6fcac79d5ceacc60e6c65b455
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Sep 28 16:05:41 2025 +0200
Adapterize
apache-module.spec | 2 +-
apache1-module.spec | 4 ++--
drupal-mod.spec | 6 +++---
ghc-package.spec | 2 +-
java-webapp.spec | 2 +-
kde-theme.spec | 14 +++++++-------
lib.spec | 2 +-
ocaml.spec | 4 ++--
tcl.spec | 2 +-
9 files changed, 19 insertions(+), 19 deletions(-)
---
diff --git a/apache-module.spec b/apache-module.spec
index 95577e7..f33c70b 100644
--- a/apache-module.spec
+++ b/apache-module.spec
@@ -65,4 +65,4 @@ fi
%defattr(644,root,root,755)
%doc README
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*_mod_%{mod_name}.conf
-%attr(755,root,root) %{_pkglibdir}/mod_%{mod_name}.so
+%{_pkglibdir}/mod_%{mod_name}.so
diff --git a/apache1-module.spec b/apache1-module.spec
index 07dfd36..acb4084 100644
--- a/apache1-module.spec
+++ b/apache1-module.spec
@@ -47,12 +47,12 @@ MODNAME is Apache HTTPD module...
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_pkglibdir},%{_sysconfdir}/conf.d}
-install mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
+cp -p mod_%{mod_name}.so $RPM_BUILD_ROOT%{_pkglibdir}
# module configuration
# - should contain LoadModule line
# - and directives must be between IfModule (so user could disable the module easily)
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/conf.d/90_mod_%{mod_name}.conf
# or, if no directives needed, put just LoadModule line
echo 'LoadModule %{mod_name}_module modules/mod_%{mod_name}.so' > \
diff --git a/drupal-mod.spec b/drupal-mod.spec
index bf26bc1..46be6d6 100644
--- a/drupal-mod.spec
+++ b/drupal-mod.spec
@@ -35,9 +35,9 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_moddir},%{_podir},%{_htmlmoddir},%{_incdir},%{_htdocs}}
install -d $RPM_BUILD_ROOT%{_moddir}
-install *.module $RPM_BUILD_ROOT%{_moddir}
-install *.inc $RPM_BUILD_ROOT%{_incdir}
-install *.css $RPM_BUILD_ROOT%{_htmlmoddir}
+cp -p *.module $RPM_BUILD_ROOT%{_moddir}
+cp -p *.inc $RPM_BUILD_ROOT%{_incdir}
+cp -p *.css $RPM_BUILD_ROOT%{_htmlmoddir}
cp -a po/*.po $RPM_BUILD_ROOT%{_podir}
%clean
diff --git a/ghc-package.spec b/ghc-package.spec
index 40134cd..73c3488 100644
--- a/ghc-package.spec
+++ b/ghc-package.spec
@@ -91,7 +91,7 @@ rm -rf $RPM_BUILD_ROOT
%doc NEWS %{name}-%{version}-doc/*
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%attr(755,root,root) %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.so
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.a
%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*_p.a
diff --git a/java-webapp.spec b/java-webapp.spec
index f89d5b8..7f188a5 100644
--- a/java-webapp.spec
+++ b/java-webapp.spec
@@ -66,7 +66,7 @@ for i in $CONFIGFILES; do
done
# Install tomcat context descriptor
-install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/tomcat-context.xml
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/tomcat-context.xml
ln -sf %{_sysconfdir}/%{name}/tomcat-context.xml $RPM_BUILD_ROOT%{_tomcatconfdir}/%{name}.xml
%postun
diff --git a/kde-theme.spec b/kde-theme.spec
index b5b1f17..6c84be1 100644
--- a/kde-theme.spec
+++ b/kde-theme.spec
@@ -106,8 +106,8 @@ Wtyczka ksplash %{_name}
Summary: Color scheme for %{_name} theme to go with thinkeramik style
Summary(pl.UTF-8): Schemat kolorów dla motywu %{_name} pasujący do stylu thinkeramik
Group: Themes
-Requires: kdebase-core
Requires: kde-style-thinkeramik >= 3.1.4
+Requires: kdebase-core
%description -n kde-colorscheme-%{_name}-thinkeramik
Color scheme for %{_name} theme to go with thinkeramik style.
@@ -119,8 +119,8 @@ Schemat kolorów dla motywu %{_name} pasujący do stylu thinkeramik.
Summary: Color scheme for %{_name} theme to go with activeheart style
Summary(pl.UTF-8): Schemat kolorów dla motywu %{_name} pasujący do stylu activeheart
Group: Themes
-Requires: kdebase-core
Requires: kde-style-activeheart >= 1.1.7-2
+Requires: kdebase-core
%description -n kde-colorscheme-%{_name}-activeheart
Color scheme for %{_name} theme to go with thinkeramik style.
@@ -144,9 +144,9 @@ Obrazek startowy dla motywu %{_name}.
Summary: Kicker sidebar from %{_name}
Summary(pl.UTF-8): Boczny pasek do menu kde z motywu %{_name}
Group: Themes
-Obsoletes: kde-kside
-Provides: kde-kside
Requires: kdebase-kicker >= 9:3.1.90.030726-2
+Provides: kde-kside
+Obsoletes: kde-kside
%description -n kde-kside-%{_name}
Kicker sidebar from %{_name}.
@@ -234,15 +234,15 @@ rm -rf $RPM_BUILD_ROOT
%files -n kde-decoration-%{_name}
%defattr(644,root,root,755)
%{_libdir}/kde3/kwin*.la
-%attr(755,root,root) %{_libdir}/kde3/kwin*.so
+%{_libdir}/kde3/kwin*.so
%{_datadir}/apps/kwin/*.desktop
%files -n kde-style-%{_name}
%defattr(644,root,root,755)
%{_libdir}/kde3/kstyle_*.la
-%attr(755,root,root) %{_libdir}/kde3/kstyle_*.so
+%{_libdir}/kde3/kstyle_*.so
%{_libdir}/kde3/plugins/styles/*.la
-%attr(755,root,root) %{_libdir}/kde3/plugins/styles/*.so
+%{_libdir}/kde3/plugins/styles/*.so
%{_datadir}/apps/kstyle/themes/*.themerc
%files -n kde-icons-%{_name}
diff --git a/lib.spec b/lib.spec
index 11528cb..0aa77ec 100644
--- a/lib.spec
+++ b/lib.spec
@@ -136,7 +136,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc AUTHORS CREDITS README THANKS
-%attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
+%{_libdir}/%{name}.so.*.*.*
%ghost %{_libdir}/%{name}.so.N
%files common
diff --git a/ocaml.spec b/ocaml.spec
index 1ad3254..6b53e70 100644
--- a/ocaml.spec
+++ b/ocaml.spec
@@ -44,7 +44,7 @@ Summary: TEMPLATE binding for OCaml - development part
Summary(pl.UTF-8): Wiązania TEMPLATE dla OCamla - część programistyczna
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-%requires_eq ocaml
+%requires_eq ocaml
%description devel
This package contains files needed to develop OCaml programs using
@@ -90,7 +90,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc CHANGES.md LICENSE.md README.md
-%attr(755,root,root) %{_libdir}/ocaml/stublibs/*.so
+%{_libdir}/ocaml/stublibs/*.so
%dir %{_libdir}/ocaml/%{module}
%{_libdir}/ocaml/%{module}/META
%{_libdir}/ocaml/%{module}/*.cma
diff --git a/tcl.spec b/tcl.spec
index 35309e3..4af8c06 100644
--- a/tcl.spec
+++ b/tcl.spec
@@ -42,6 +42,6 @@ rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc ChangeLog README
%dir %{_libdir}/TEMPLATE%{version}
-%attr(755,root,root) %{_libdir}/TEMPLATE%{version}/libTEMPLATE*.so
+%{_libdir}/TEMPLATE%{version}/libTEMPLATE*.so
%{_libdir}/TEMPLATE%{version}/*.tcl
%{_mandir}/mann/*.n*
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/51a701d74482faf6fcac79d5ceacc60e6c65b455
More information about the pld-cvs-commit
mailing list