Updated makefiles to build FreeIPA Web UI layer

Updated makefiles to comply to new directory structure and also to use builder
for building Web UI.

FreeIPA package spec is modified to use the output of the builder.

https://fedorahosted.org/freeipa/ticket/112
This commit is contained in:
Petr Vobornik
2012-11-23 17:19:37 +01:00
parent 5e90c98849
commit c71937fc0c
9 changed files with 98 additions and 42 deletions

View File

@@ -153,7 +153,7 @@ archive:
local-archive:
-mkdir -p dist/$(TARBALL_PREFIX)
rsync -a --exclude=dist --exclude=.git --exclude=build --exclude=rpmbuild . dist/$(TARBALL_PREFIX)
rsync -a --exclude=dist --exclude=.git --exclude=/build --exclude=rpmbuild . dist/$(TARBALL_PREFIX)
archive-cleanup:
rm -fr dist/freeipa

View File

@@ -70,6 +70,7 @@ BuildRequires: python-dns
BuildRequires: m2crypto
BuildRequires: check
BuildRequires: libsss_idmap-devel
BuildRequires: rhino >= 1.7R3
%description
IPA is an integrated solution to provide centrally managed Identity (machine,
@@ -622,6 +623,12 @@ fi
%{_usr}/share/ipa/ui/*.woff
%dir %{_usr}/share/ipa/ui/ext
%config(noreplace) %{_usr}/share/ipa/ui/ext/extension.js
%dir %{_usr}/share/ipa/ui/js/dojo
%{_usr}/share/ipa/ui/js/dojo/dojo.js
%dir %{_usr}/share/ipa/ui/js/libs
%{_usr}/share/ipa/ui/js/libs/*.js
%dir %{_usr}/share/ipa/ui/js/freeipa
%{_usr}/share/ipa/ui/js/freeipa/app.js
%dir %{_usr}/share/ipa/ui/images
%{_usr}/share/ipa/ui/images/*.png
%{_usr}/share/ipa/ui/images/*.gif

View File

@@ -87,7 +87,12 @@ AC_CONFIG_FILES([
share/Makefile
ui/Makefile
ui/ext/Makefile
ui/src/Makefile
ui/src/libs/Makefile
ui/images/Makefile
ui/build/Makefile
ui/build/dojo/Makefile
ui/build/freeipa/Makefile
tools/Makefile
tools/man/Makefile
updates/Makefile

View File

@@ -3,48 +3,23 @@ AUTOMAKE_OPTIONS = 1.7
NULL =
SUBDIRS = \
build \
ext \
images \
src \
$(NULL)
appdir = $(IPA_DATA_DIR)/ui
app_DATA = \
aci.js \
add.js \
association.js \
automember.js \
automount.js \
browser.js \
certificate.js \
details.js \
dialog.js \
dns.js \
entitle.js \
entity.js \
facet.js \
config.js \
favicon.ico \
field.js \
group.js \
hbac.js \
hbactest.js \
host.js \
hostgroup.js \
index.html \
jquery-ui.css \
ie.css \
ipa.css \
ipa.js \
jquery-ui.css \
jquery-ui.js \
jquery.ba-bbq.js \
jquery.js \
jquery.ordered-map.js \
json2.js \
login.html \
login.js \
logout.html \
navigation.js \
net.js \
netgroup.js \
overpass_bold-web.eot \
overpass_bold-web.svg \
overpass_bold-web.ttf \
@@ -53,20 +28,8 @@ app_DATA = \
overpass_regular-web.svg \
overpass_regular-web.ttf \
overpass_regular-web.woff \
policy.js \
idrange.js \
reset_password.js \
reset_password.html \
rule.js \
search.js \
selinux.js \
serverconfig.js \
service.js \
sudo.js \
trust.js \
user.js \
webui.js \
widget.js \
$(NULL)
EXTRA_DIST = \

View File

@@ -0,0 +1,16 @@
AUTOMAKE_OPTIONS = 1.7
NULL =
SUBDIRS = \
dojo \
freeipa \
$(NULL)
EXTRA_DIST = \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in
$(NULL)

View File

@@ -0,0 +1,14 @@
NULL =
appdir = $(IPA_DATA_DIR)/ui/js/dojo
app_DATA = \
dojo.js \
$(NULL)
EXTRA_DIST = \
$(app_DATA) \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in

View File

@@ -0,0 +1,17 @@
NULL =
appdir = $(IPA_DATA_DIR)/ui/js/freeipa
app_DATA = \
app.js \
$(NULL)
EXTRA_DIST = \
$(app_DATA) \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in
app.js:
../../util/make-ui.sh

View File

@@ -0,0 +1,15 @@
AUTOMAKE_OPTIONS = 1.7
NULL =
SUBDIRS = \
libs \
$(NULL)
EXTRA_DIST = \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in
$(NULL)

View File

@@ -0,0 +1,19 @@
NULL =
appdir = $(IPA_DATA_DIR)/ui/js/libs
app_DATA = \
browser.js \
jquery.ba-bbq.js \
jquery.js \
jquery.ordered-map.js \
jquery-ui.js \
json2.js \
$(NULL)
EXTRA_DIST = \
$(app_DATA) \
$(NULL)
MAINTAINERCLEANFILES = \
*~ \
Makefile.in