]> git.pld-linux.org Git - packages/pimpmychangelog.git/commitdiff
new, version 0.1.2 auto/th/pimpmychangelog-0.1.2-1
authorElan Ruusamäe <glen@delfi.ee>
Sat, 11 Jan 2014 11:44:15 +0000 (13:44 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 11 Jan 2014 11:44:15 +0000 (13:44 +0200)
pimpmychangelog.spec [new file with mode: 0644]
require.patch [new file with mode: 0644]

diff --git a/pimpmychangelog.spec b/pimpmychangelog.spec
new file mode 100644 (file)
index 0000000..60ae482
--- /dev/null
@@ -0,0 +1,48 @@
+#
+# Conditional build:
+%bcond_with    tests           # build without tests
+
+Summary:       Pimp your CHANGELOG.md
+Name:          pimpmychangelog
+Version:       0.1.2
+Release:       1
+License:       GPL v2+ or Ruby
+Group:         Applications/Text
+Source0:       http://rubygems.org/downloads/%{name}-%{version}.gem
+# Source0-md5: 0359fcd357bc127fe58a5762e07b70c4
+Patch0:                require.patch
+URL:           https://github.com/pcreux/pimpmychangelog
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.656
+BuildRequires: sed >= 4.0
+%if %{with tests}
+BuildRequires: ruby-guard-rspec
+BuildRequires: ruby-rake
+BuildRequires: ruby-rspec
+%endif
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Linkify issue numbers (#123) and github users (@gregbell) in markdown
+changelogs.
+
+%prep
+%setup -q
+%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
+%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/pimpmychangelog
+%{ruby_vendorlibdir}/%{name}.rb
+%{ruby_vendorlibdir}/%{name}
diff --git a/require.patch b/require.patch
new file mode 100644 (file)
index 0000000..4ff0789
--- /dev/null
@@ -0,0 +1,9 @@
+--- pimpmychangelog-0.1.2/bin/pimpmychangelog  2014-01-11 12:45:45.851234404 +0200
++++ pimpmychangelog-0.1.2/bin/pimpmychangelog  2014-01-11 13:00:26.000000000 +0200
+@@ -1,5 +1,5 @@
+ #!/usr/bin/ruby
+-require File.expand_path('../../lib/pimpmychangelog.rb', __FILE__)
++require 'pimpmychangelog.rb'
+ PimpMyChangelog::CLI.run!
This page took 0.074902 seconds and 4 git commands to generate.