[c2esp] 2.7

Jiří Popelka jpopelka at fedoraproject.org
Mon Dec 30 06:37:31 UTC 2013


commit 6cde3f2c93e04e23ae06ab866d9e72ac9e76e0d0
Author: Jiri Popelka <jpopelka at redhat.com>
Date:   Sun Dec 29 22:18:57 2013 +0100

    2.7

 .gitignore       |    1 +
 c2esp-jbig.patch |   12 ------------
 c2esp.spec       |   33 ++++++++++++---------------------
 sources          |    2 +-
 4 files changed, 14 insertions(+), 34 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 97fff02..3d5e4a5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /c2esp26.tar.gz
 /c2esp27~rc1.tar.gz
+/c2esp-27.tar.gz
diff --git a/c2esp.spec b/c2esp.spec
index 2b25113..9f0939b 100644
--- a/c2esp.spec
+++ b/c2esp.spec
@@ -1,16 +1,13 @@
 %global version_no_dot 27
-%global alphatag rc1
 
 Name:           c2esp
 Version:        2.7
-Release:        0.1.%{alphatag}%{?dist}
+Release:        1%{?dist}
 Summary:        CUPS driver for Kodak AiO printers
 
 License:        GPLv2+
 URL:            http://sourceforge.net/projects/cupsdriverkodak/
-Source0:        http://downloads.sourceforge.net/cupsdriverkodak/c2esp%{version_no_dot}~%{alphatag}.tar.gz
-
-Patch0:         c2esp-jbig.patch
+Source0:        http://downloads.sourceforge.net/cupsdriverkodak/c2esp-%{version_no_dot}.tar.gz
 
 
 # _cups_serverbin macro
@@ -33,34 +30,28 @@ CUPS filters and drivers for Kodak ESP and Hero all in one printers.
 
 
 %prep
-%setup -q -n c2esp%{version_no_dot}~%{alphatag}
-
-%patch0 -p1 -b .jbig
+%setup -q -n c2esp-%{version_no_dot}
 
 %build
-# Makefile is not ready for %%{?_smp_mflags} (config.h is a shared resource)
-CFLAGS="%{optflags}" \
-make all
-
-%install
-make install DESTDIR=%{buildroot}
 
-# https://fedoraproject.org/wiki/Packaging_tricks#With_.25doc
-mkdir __doc
-mv  %{buildroot}%{_datadir}/doc/c2esp/* __doc
-rm -rf %{buildroot}%{_datadir}/doc/c2esp
+%configure
+make %{_smp_mflags} -C src/
 
-# useless
-rm -f %{buildroot}%{_bindir}/c2esplog
+%install
+# do not install doc/ or scripts/
+make -C src/ install DESTDIR=%{buildroot}
 
 %files
-%doc __doc/COPYING __doc/README __doc/c2esp.txt
+%doc doc/COPYING doc/README
 %{_cups_serverbin}/filter/c2esp
 %{_cups_serverbin}/filter/c2espC
 %{_cups_serverbin}/filter/command2esp
 %{_datadir}/cups/drv/c2esp
 
 %changelog
+* Sun Dec 29 2013 Jiri Popelka <jpopelka at redhat.com> - 2.7-1
+- 2.7
+
 * Thu Dec 19 2013 Jiri Popelka <jpopelka at redhat.com> - 2.7-0.1.rc1
 - 2.7~rc1
 
diff --git a/sources b/sources
index c4d8abd..09bc83a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-6b37103592a419e855f5adafee6c95c0  c2esp27~rc1.tar.gz
+e4a0a8617ba80f86d159b5c36208ab6c  c2esp-27.tar.gz


More information about the scm-commits mailing list