From f506f1c7bd4cfcb7806711a627172311a3752d2c Mon Sep 17 00:00:00 2001 From: Rene Cunningham Date: Wed, 10 Jul 2013 15:08:36 +1000 Subject: [PATCH 1/2] rpm spec file which produces a znc-push rpm. builds on rhel6, centos6 and fedora19. --- znc-push.spec | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 znc-push.spec diff --git a/znc-push.spec b/znc-push.spec new file mode 100644 index 0000000..5ff95cb --- /dev/null +++ b/znc-push.spec @@ -0,0 +1,50 @@ +Name: znc-push +Version: 20130708 +Release: 2%{?dist} +Summary: Push notifications module for ZNC + +Group: System Environment/Daemons +License: MIT +URL: https://github.com/jreese/znc-push +Source0: %{name}-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: gcc-c++, znc-devel >= 0.90 +Requires: znc >= 0.90 + +%description +Push notifications module for ZNC + +%prep + +%setup -q + +%build +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +%{__mkdir_p} %{buildroot}/%{_libdir}/znc +%{__mkdir_p} %{buildroot}/%{_defaultdocdir}/%{name}-%{version} +%{__install} -Dp -m0755 push.so %{buildroot}/%{_libdir}/znc/push.so +%{__install} -Dp -m0644 README.md %{buildroot}/%{_defaultdocdir}/%{name}-%{version}/README.md +%{__install} -Dp -m0644 LICENSE %{buildroot}/%{_defaultdocdir}/%{name}-%{version}/LICENSE + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%dir %{_defaultdocdir}/%{name}-%{version} +%attr(0755, root, root) %{_libdir}/znc/push.so +%doc %{_defaultdocdir}/%{name}-%{version}/README.md +%doc %{_defaultdocdir}/%{name}-%{version}/LICENSE + +%changelog +* Mon Jul 08 2013 Rene Cunningham - 20130708-2 +- Removed use of Makefile. +- Added README & LICENSE. + +* Thu Jun 06 2013 Andrew Grimberg - 20130606-1 +- Initial build From 21e29845a6abab5dfc5ae9a905b6b43319970a6d Mon Sep 17 00:00:00 2001 From: Rene Cunningham Date: Sat, 13 Jul 2013 09:49:42 +1000 Subject: [PATCH 2/2] - bumped znc requires to 1.0. - removed tabs. --- znc-push.spec | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/znc-push.spec b/znc-push.spec index 5ff95cb..d4c8e97 100644 --- a/znc-push.spec +++ b/znc-push.spec @@ -1,16 +1,16 @@ -Name: znc-push -Version: 20130708 -Release: 2%{?dist} -Summary: Push notifications module for ZNC +Name: znc-push +Version: 20130708 +Release: 3%{?dist} +Summary: Push notifications module for ZNC -Group: System Environment/Daemons -License: MIT -URL: https://github.com/jreese/znc-push -Source0: %{name}-%{version}.tar.gz +Group: System Environment/Daemons +License: MIT +URL: https://github.com/jreese/znc-push +Source0: %{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) -BuildRequires: gcc-c++, znc-devel >= 0.90 -Requires: znc >= 0.90 +BuildRequires: gcc-c++, znc-devel >= 1.0 +Requires: znc >= 1.0 %description Push notifications module for ZNC @@ -42,6 +42,9 @@ rm -rf %{buildroot} %doc %{_defaultdocdir}/%{name}-%{version}/LICENSE %changelog +* Sat Jul 13 2013 Rene Cunningham - 20130708-3 +- bumped znc requires to 1.0. + * Mon Jul 08 2013 Rene Cunningham - 20130708-2 - Removed use of Makefile. - Added README & LICENSE.