[sxiv] 1.0 bump

Petr Sabata psabata at fedoraproject.org
Wed Nov 2 12:33:13 UTC 2011


commit 0aa3e8889c008499561f2de45538402b61bcd355
Author: Petr Sabata <contyk at redhat.com>
Date:   Wed Nov 2 13:30:49 2011 +0100

    1.0 bump

 .gitignore                               |    1 +
 sources                                  |    2 +-
 sxiv-0.8.2-do-not-change-ownership.patch |   13 -------------
 sxiv-0.9-optflags.patch                  |   13 -------------
 sxiv-1.0-optflags.patch                  |   13 +++++++++++++
 sxiv.spec                                |   13 ++++++-------
 6 files changed, 21 insertions(+), 34 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 83e36c1..3610015 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /sxiv-0.8.1.tar.gz
 /sxiv-0.8.2.tar.gz
 /sxiv-0.9.tar.gz
+/sxiv-1.0.tar.gz
diff --git a/sources b/sources
index ce0abfd..2a62284 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-865f1e542669ad6d7932fcd4664fb481  sxiv-0.9.tar.gz
+c887e0af1e4d5a101b285a46d288c419  sxiv-1.0.tar.gz
diff --git a/sxiv-1.0-optflags.patch b/sxiv-1.0-optflags.patch
new file mode 100644
index 0000000..69b1f93
--- /dev/null
+++ b/sxiv-1.0-optflags.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile b/Makefile
+index 32c644f..95b9806 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,7 +1,7 @@
+ VERSION = 1.0
+ 
+ CC      = gcc
+-CFLAGS  = -ansi -Wall -pedantic -O2
++CFLAGS += -ansi -Wall -pedantic -O2
+ LDFLAGS =
+ LIBS    = -lX11 -lImlib2
+ 
diff --git a/sxiv.spec b/sxiv.spec
index 900c856..c99a5d8 100644
--- a/sxiv.spec
+++ b/sxiv.spec
@@ -1,5 +1,5 @@
 Name:           sxiv
-Version:        0.9
+Version:        1.0
 Release:        1%{?dist}
 Summary:        Simple (or small or suckless) X Image Viewer
 Group:          Applications/Multimedia
@@ -7,10 +7,7 @@ License:        GPLv2+
 URL:            https://github.com/muennich/%{name}/
 Source0:        https://github.com/downloads/muennich/%{name}/%{name}-%{version}.tar.gz
 Source1:        %{name}.desktop
-# Do not change sxiv binary ownership to root:root
-# Allows rpm-building the package by regular users
-Patch0:         sxiv-0.8.2-do-not-change-ownership.patch
-Patch1:         sxiv-0.9-optflags.patch
+Patch0:         sxiv-1.0-optflags.patch
 BuildRequires:  libX11-devel
 BuildRequires:  imlib2-devel
 BuildRequires:  desktop-file-utils
@@ -25,8 +22,7 @@ customize it for your needs.
 
 %prep
 %setup -q
-%patch0 -p1 -b .do-not-change-ownership
-%patch1 -p1 -b .optflags
+%patch0 -p1 -b .optflags
 
 %build
 export CFLAGS="%{optflags}"
@@ -43,6 +39,9 @@ desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
 %{_datadir}/applications
 
 %changelog
+* Wed Nov 02 2011 Petr Sabata <contyk at redhat.com> - 1.0-1
+- 1.0 bump
+
 * Wed Aug 17 2011 Petr Sabata <contyk at redhat.com> - 0.9-1
 - 0.9 bump
 


More information about the scm-commits mailing list