Summary: Sticky notes is a free and open source paste-bin application Name: sticky-notes Version: 0.3.09062012.4 Release: 4%{?dist} License: BSD Group: Applications/Internet URL: http://gitorious.org/sticky-notes # The source was pulled from upstreams git scm. Use the following # commands to generate the tarball # git clone git://gitorious.org/sticky-notes/sticky-notes.git # cd sticky-notes # git archive HEAD --format=tar --prefix=sticky-notes/ | gzip > ../sticky-notes-0.3.09062012.4.tar.gz Source0: sticky-notes-%{version}.tar.gz Source1: sticky-notes-http-conf Patch0: sticky-notes-unbundle-php-geshi.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch Requires: httpd Requires: php, php-geshi, php-mysql %description Sticky notes is a free and open source paste-bin application. %prep %setup -q -n sticky-notes %patch0 -p0 %build %install mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/%{name} install -m 0644 -D -p %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d/sticky-notes.conf #chmod -R -x * # Remove bundled php-geshi rm -rf addons/geshi cp -pr * ${RPM_BUILD_ROOT}%{_datadir}/%{name} mkdir ${RPM_BUILD_ROOT}%{_sysconfdir}/sticky-notes cp config.sample.php ${RPM_BUILD_ROOT}%{_sysconfdir}/sticky-notes/config.php ln -s ../../../etc/sticky-notes/config.php ${RPM_BUILD_ROOT}%{_datadir}/%{name}/config.php mv install.php ${RPM_BUILD_ROOT}%{_sysconfdir}/sticky-notes/ ln -sf ../../../etc/sticky-notes/install.php ${RPM_BUILD_ROOT}%{_datadir}/%{name}/install.php %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(0644,root,root,-) %config(noreplace) %{_sysconfdir}/httpd/conf.d/sticky-notes.conf %config(noreplace) %{_sysconfdir}/%{name}/config.php %config(noreplace) %{_sysconfdir}/%{name}/install.php %dir %{_datadir}/%{name} %dir %{_sysconfdir}/sticky-notes %{_datadir}/%{name}/addons %{_datadir}/%{name}/admin %{_datadir}/%{name}/api %{_datadir}/%{name}/skins %{_datadir}/%{name}/classes %{_datadir}/%{name}/rss %{_datadir}/%{name}/lang %{_datadir}/%{name}/*.php %{_datadir}/%{name}/robots.txt %{_datadir}/%{name}/LICENSE %{_datadir}/%{name}/README %{_datadir}/%{name}/VERSION %doc LICENSE %doc README %doc VERSION %changelog * Thu Jun 14 2012 Athmane Madjoudj 0.3.09062012.4-4 - Fix version number * Wed Jun 13 2012 Athmane Madjoudj 20120507git-3 - Move install to config since it requires modification * Thu Jun 07 2012 Athmane Madjoudj 20120507git-2 - Remove mysql-server dep - Update to latest upstream version which includes security patch from #810928 - Unbundle php-geshi - Add a config file to make sticky-notes installable - Add php-mysql as requirement * Sat Apr 07 2012 david - 20120407git-1 - First packaged