diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index e69de29..0000000 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44d8c1d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +503434057_cets_new_blog_defaults.zip diff --git a/Makefile b/Makefile deleted file mode 100644 index 4d02e52..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: wordpress-mu-plugin-defaults -# $Id$ -NAME := wordpress-mu-plugin-defaults -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/sources b/sources index e69de29..487d2f0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b0ecafbc0ccdf226046474aab0d7f7a7 503434057_cets_new_blog_defaults.zip diff --git a/wordpress-mu-plugin-defaults.spec b/wordpress-mu-plugin-defaults.spec new file mode 100644 index 0000000..0737f44 --- /dev/null +++ b/wordpress-mu-plugin-defaults.spec @@ -0,0 +1,55 @@ +%global plugin_name defaults +%global plugin_human_name Wordpress MU new blog defaults + +Name: wordpress-mu-plugin-%{plugin_name} +# This does not come from wordpress.org, so I made my own plugin_name and plugin_human_name +# I spoke to ianweller about this and he said just to comment the spec file +Version: 1.2.3 +Release: 3%{?dist} +Summary: %{plugin_human_name} plugin for WordPress MU + +Group: Applications/Publishing +License: GPLv2+ +URL: http://wpmudev.org/project/New-Blog-Defaults +Source0: http://wpmudev.org/download/503434057_cets_new_blog_defaults.zip +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +Requires: wordpress-mu +BuildArch: noarch + +%description + +This package allows you to set various defaults to automatically +apply to new blogs, such as the default theme, etc. + +This package is built for use with WordPress MU (wordpress-mu), +not regular WordPress. + +%prep +%setup -q -c + +%build + + +%install +rm -rf %{buildroot} +mkdir -p %{buildroot}%{_datadir}/wordpress-mu/wp-content/mu-plugins/ +sed -e 's/\r//g' readme.txt > readme.txt.fixed && mv readme.txt.fixed readme.txt +cp -a cets_blog_defaults.php %{buildroot}%{_datadir}/wordpress-mu/wp-content/mu-plugins/ + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%{_datadir}/wordpress-mu/wp-content/mu-plugins/cets_blog_defaults.php +%doc readme.txt + +%changelog +* Wed Jul 1 2009 Nick Bebout - 1.2.3-3 +- Adding changelog entry because 1.2.3-2 was missing one +* Wed Jul 1 2009 Nick Bebout - 1.2.3-2 +- Fixing description +* Sun Jun 21 2009 Nick Bebout - 1.2.3-1 +- Initial Fedora package for this plugin based on 1.2.3 of upstream +