-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #3338 -- Partially fix rpm packaging problems. There is still on…
…e issue remaining with how we construct the version numbers, but this change is useful nonetheless. Patch from Dirk Datzert. git-svn-id: http://code.djangoproject.com/svn/django/trunk@4490 bcc190cf-cafb-0310-a4f2-bffc1f526a37
- Loading branch information
Showing
4 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
include AUTHORS | ||
include INSTALL | ||
include LICENSE | ||
recursive-include docs * | ||
recursive-include scripts * | ||
recursive-include django/conf/locale * | ||
recursive-include django/contrib/admin/templates | ||
recursive-include django/contrib/admin/media | ||
recursive-include django/contrib/comments/templates | ||
recursive-include django/contrib/sitemaps/templates | ||
recursive-include django/contrib/admin/templates * | ||
recursive-include django/contrib/admin/media * | ||
recursive-include django/contrib/comments/templates * | ||
recursive-include django/contrib/sitemaps/templates * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#! /bin/sh | ||
# | ||
# this file is *inserted* into the install section of the generated | ||
# spec file | ||
# | ||
|
||
# this is, what dist.py normally does | ||
python setup.py install --root=${RPM_BUILD_ROOT} --record="INSTALLED_FILES" | ||
|
||
for i in `cat INSTALLED_FILES`; do | ||
if [ -f ${RPM_BUILD_ROOT}/$i ]; then | ||
echo $i >>FILES | ||
fi | ||
if [ -d ${RPM_BUILD_ROOT}/$i ]; then | ||
echo %dir $i >>DIRS | ||
fi | ||
done | ||
|
||
cat DIRS FILES >INSTALLED_FILES |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[bdist_rpm] | ||
doc_files = docs/*.txt | ||
install-script = scripts/rpm-install.sh | ||
|