forked from pool/weechat
Accepting request 376323 from server:irc
1 OBS-URL: https://build.opensuse.org/request/show/376323 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/weechat?expand=0&rev=37
This commit is contained in:
commit
57e2532fb4
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Mar 20 18:45:20 UTC 2016 - bwiedemann@suse.com
|
||||||
|
|
||||||
|
- Fix build-compare
|
||||||
|
- include .changes file as Source so that .src.rpm can be rebuilt
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 18 11:58:33 UTC 2016 - mimi.vx@gmail.com
|
Thu Feb 18 11:58:33 UTC 2016 - mimi.vx@gmail.com
|
||||||
|
|
||||||
|
11
weechat.spec
11
weechat.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package weechat
|
# spec file for package weechat
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: weechat
|
Name: weechat
|
||||||
Version: 1.4
|
Version: 1.4
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -28,6 +27,7 @@ Source: http://weechat.org/files/src/%{name}-%{version}.tar.bz2
|
|||||||
Source1: weechat.desktop
|
Source1: weechat.desktop
|
||||||
Source2: %{name}.keyring
|
Source2: %{name}.keyring
|
||||||
Source3: %{name}-%{version}.tar.bz2.asc
|
Source3: %{name}-%{version}.tar.bz2.asc
|
||||||
|
Source4: %{name}.changes
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
BuildRequires: ca-certificates
|
BuildRequires: ca-certificates
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
@ -151,10 +151,15 @@ Spell-checking support for %{name}, using the aspell library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
|
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE4}")"
|
||||||
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
|
||||||
TIME="\"$(date -d "${modified}" "+%%R")\""
|
TIME="\"$(date -d "${modified}" "+%%R")\""
|
||||||
find . -name '*.[ch]' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
|
find . -name '*.[ch]' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
|
||||||
|
DATEF="\"$(date -d "${modified}" "+%%F")\""
|
||||||
|
sed -i "s/date=.*/date=$DATEF/" doc/asciidoc.conf
|
||||||
|
sed -i "s/A2X_EXECUTABLE.*/& -a revdate=$DATEF/" doc/*/CMakeLists.txt
|
||||||
|
YEAR=$(date -d "${modified}" +%%Y)
|
||||||
|
sed -i "s/{sys:date \"+%%Y\"}/${YEAR}/" doc/*/weechat.1.*.asciidoc
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
|
Loading…
Reference in New Issue
Block a user