confuse-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Confuse-devel] libconfuse 2.7 spec file issues


From: Dieter GORECKI
Subject: [Confuse-devel] libconfuse 2.7 spec file issues
Date: Mon, 2 Jun 2014 20:23:16 +0200

Hi,

The spec file currently provided with libconfuse 2.7 is broken, at least with RHEL 6.x x86_64. Here is a list of things that should be fixed in order to make it work :

- the COPYING file doesn't exist
- the "Copyright" tag doesn't exist, it should be "License" instead.

(These 2 points have already been pointed out in a 2009 email in this list...)

- the libraries directory should be lib64 instead of lib
- the package config file is not generated 


Here is a patch to fix these issues :

--- confuse-2.7_orig/libconfuse.spec 2010-02-22 01:44:22.000000000 +0100
+++ confuse-2.7/libconfuse.spec 2014-06-02 20:15:04.901990089 +0200
@@ -29,7 +29,7 @@
 URL: http://www.nongnu.org/confuse/
 Group: %{_group}
 Packager: Pascal Bleser <address@hidden>
-Copyright: ISC
+License: ISC
 BuildRoot: %{_tmppath}/build-%{_name}-%{_version}
 BuildRequires:     xmlto doxygen
 Prefix: %{_prefix}
@@ -72,7 +72,8 @@
 CFLAGS="${RPM_OPT_FLAGS}" \
 ./configure \
  --prefix="%{_prefix}" \
- --enable-shared
+ --enable-shared \
+ --libdir="%{_prefix}"/lib64
 
 %build
 %{__make}
@@ -88,7 +89,7 @@
 
 %{__mkdir_p} "${RPM_BUILD_ROOT}%{_pkgdoc}"
 echo -n > _rpm_doc_files_
-for f in AUTHORS COPYING NEWS README; do
+for f in AUTHORS NEWS README; do
  %{__cp} "$f" "${RPM_BUILD_ROOT}%{_pkgdoc}/$f"
  echo "%doc %{_pkgdoc}/$f" >> _rpm_doc_files_
 done
@@ -121,5 +122,6 @@
 %{_libdir}/lib*.a
 %{_libdir}/lib*.la
 %{_libdir}/lib*.so
+%{_libdir}/pkgconfig/*.pc
 %doc %{_mandir}/man*/*
 



I know this project is likely to be dead so I don't have much expectations for my patch to be merged, but I hope it will help save time to people needing to compile rpms ...

Regards,

Dieter


reply via email to

[Prev in Thread] Current Thread [Next in Thread]