Compare commits

...
Sign in to create a new pull request.

4 commits

5 changed files with 57 additions and 21 deletions

View file

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
503434057_cets_new_blog_defaults.zip

View file

@ -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)

View file

@ -0,0 +1 @@
b0ecafbc0ccdf226046474aab0d7f7a7 503434057_cets_new_blog_defaults.zip

View file

@ -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 <nb@fedoraproject.org> - 1.2.3-3
- Adding changelog entry because 1.2.3-2 was missing one
* Wed Jul 1 2009 Nick Bebout <nb@fedoraproject.org> - 1.2.3-2
- Fixing description
* Sun Jun 21 2009 Nick Bebout <nb@fedoraproject.org> - 1.2.3-1
- Initial Fedora package for this plugin based on 1.2.3 of upstream