ivanromanov pushed to qconf (epel7). "Initial version."
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon May 4 04:22:21 UTC 2015
>From d75bced97ed75c0868062b61a328eb90cbf8a95e Mon Sep 17 00:00:00 2001
From: Ivan Romanov <drizt at land.ru>
Date: Wed, 20 Apr 2011 00:52:29 +0600
Subject: Initial version.
diff --git a/qconf-1.4-optflags.patch b/qconf-1.4-optflags.patch
new file mode 100644
index 0000000..597ca78
--- /dev/null
+++ b/qconf-1.4-optflags.patch
@@ -0,0 +1,28 @@
+diff --git a/qconf.pro b/qconf.pro
+index e8a8b40..97dc789 100644
+--- a/qconf.pro
++++ b/qconf.pro
+@@ -6,7 +6,9 @@ CONFIG -= app_bundle
+ HEADERS += src/stringhelp.h
+ SOURCES += src/stringhelp.cpp src/qconf.cpp
+
+-include($$OUT_PWD/conf.pri)
++exists($$OUT_PWD/conf.pri) {
++ include($$OUT_PWD/conf.pri)
++}
+
+ contains($$list($$[QT_VERSION]), 4.0.*|4.1.*) {
+ DEFINES += DATADIR=\"$$DATADIR\"
+@@ -21,3 +23,12 @@ INSTALLS += target
+ libfiles.path = $$DATADIR/qconf
+ libfiles.files = $$IN_PWD/conf $$IN_PWD/modules
+ INSTALLS += libfiles
++
++isEmpty(CXXFLAGS) {
++ CXXFLAGS=$$(CXXFLAGS)
++}
++
++!isEmpty(CXXFLAGS) {
++ QMAKE_CXXFLAGS_DEBUG = $$CXXFLAGS
++ QMAKE_CXXFLAGS_RELEASE = $$CXXFLAGS
++}
diff --git a/qconf-1.4-rename-binary.patch b/qconf-1.4-rename-binary.patch
new file mode 100644
index 0000000..c202ae5
--- /dev/null
+++ b/qconf-1.4-rename-binary.patch
@@ -0,0 +1,9 @@
+diff --git a/qconf.pro b/qconf.pro
+index e8a8b40..7ff4165 100644
+--- a/qconf.pro
++++ b/qconf.pro
+@@ -1,3 +1,4 @@
++TARGET = qconf-qt4
+ QT -= gui
+ QT += xml
+ CONFIG += console
diff --git a/qconf.spec b/qconf.spec
new file mode 100644
index 0000000..fa30c51
--- /dev/null
+++ b/qconf.spec
@@ -0,0 +1,65 @@
+Summary: Tool for generating configure script for qmake-based projects
+Name: qconf
+Version: 1.4
+Release: 2%{?dist}
+
+Group: Development/Tools
+License: GPLv2+ with exceptions
+URL: http://delta.affinix.com/qconf/
+Source0: http://delta.affinix.com/download/qconf-%{version}.tar.bz2
+
+# Qt project don't support CXXFLAGS from environment. We need to use hack.
+Patch0: qconf-1.4-optflags.patch
+
+# Fedora has gridengine package with /usr/bin/qconf
+# So I need to use another name
+Patch1: qconf-1.4-rename-binary.patch
+
+Buildrequires: qt-devel >= 4.4.0
+
+
+%description
+QConf allows you to have a nice configure script for your
+qmake-based project. It is intended for developers who don't need
+(or want) to use the more complex GNU autotools. With qconf/qmake,
+it is easy to maintain a cross-platform project that uses a
+familiar configuration interface on unix.
+
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{_qt4_qmake} PREFIX=%{_prefix} \
+ BINDIR=%{_bindir} \
+ DATADIR=%{_datadir} \
+ QTDIR=%{_libdir}/qt4 \
+ CXXFLAGS="%{optflags}"
+
+make %{?_smp_mflags}
+
+
+%install
+make INSTALL_ROOT=%{buildroot} install
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README TODO
+%{_bindir}/qconf-qt4
+%{_datadir}/%{name}
+
+
+%changelog
+* Sat Apr 9 2011 Ivan Romanov <drizt at land.ru> - 1.4-2
+- added patch to support optflags
+- used qmake for build stage instead configure
+- changed summary
+- corrected codestyle
+- fix build requires (thanks to Alexey Panov)
+- binary renamed to qconf-qt4
+
+* Thu Nov 12 2009 Arkady L. Shane <ashejn at yandex-team.ru> - 1.4-1
+- initial build for Fedora
diff --git a/sources b/sources
index e69de29..cc36c85 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+e0080044f88c31e032008d5a5682a112 qconf-1.4.tar.bz2
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/qconf.git/commit/?h=epel7&id=d75bced97ed75c0868062b61a328eb90cbf8a95e
More information about the scm-commits
mailing list