summaryrefslogtreecommitdiffstats
path: root/build/opnfv-apex-common.spec
blob: 9aaf088dba5887b620c324649d1aada401c9ba75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
Name:		opnfv-apex-common
Version:	2.1
Release:	%{release}
Summary:	Scripts for OPNFV deployment using RDO Manager

Group:		System Environment
License:	Apache 2.0
URL:		https://gerrit.opnfv.org/gerrit/apex.git
Source0:	opnfv-apex-common.tar.gz

BuildArch:	noarch
BuildRequires:	openvswitch qemu-kvm python-docutils
Requires:	opnfv-apex-sdn opnfv-apex-undercloud openvswitch qemu-kvm bridge-utils libguestfs-tools

%description
Scripts for OPNFV deployment using RDO Manager
https://wiki.opnfv.org/apex

%prep
%setup -q

%build
rst2html docs/installation-instructions/installation-instructions.rst docs/installation-instructions.html
rst2html docs/release-notes/release-notes.rst docs/release-notes.html

%install
mkdir -p %{buildroot}%{_bindir}/
install ci/deploy.sh %{buildroot}%{_bindir}/opnfv-deploy
install ci/clean.sh %{buildroot}%{_bindir}/opnfv-clean

mkdir -p %{buildroot}%{_sysconfdir}/opnfv-apex/
install config/deploy/os-odl_l2-nofeature-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-odl_l2-nofeature-ha.yaml
install config/deploy/os-odl_l2-sfc-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-odl_l2-sfc-ha.yaml
install config/deploy/os-odl_l3-nofeature-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-odl_l3-nofeature-ha.yaml
install config/deploy/os-onos-nofeature-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-onos-nofeature-ha.yaml
install config/deploy/os-opencontrail-nofeature-ha.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/os-opencontrail-nofeature-ha.yaml
install config/deploy/network/network_settings.yaml %{buildroot}%{_sysconfdir}/opnfv-apex/network_settings.yaml

mkdir -p %{buildroot}%{_var}/opt/opnfv/lib/
install lib/common-functions.sh %{buildroot}%{_var}/opt/opnfv/lib/

mkdir -p %{buildroot}%{_docdir}/opnfv/
install LICENSE.rst %{buildroot}%{_docdir}/opnfv/
install docs/installation-instructions/index.rst %{buildroot}%{_docdir}/opnfv/installation-instructions.rst
install docs/installation-instructions.html %{buildroot}%{_docdir}/opnfv/
install docs/release-notes/index.rst %{buildroot}%{_docdir}/opnfv/release-notes.rst
install docs/release-notes.html %{buildroot}%{_docdir}/opnfv/
install config/deploy/deploy_settings.yaml %{buildroot}%{_docdir}/opnfv/deploy_settings.yaml.example
install config/deploy/network/network_settings.yaml %{buildroot}%{_docdir}/opnfv/network_settings.yaml.example

%files
%defattr(644, root, root, -)
%attr(755,root,root) %{_bindir}/opnfv-deploy
%attr(755,root,root) %{_bindir}/opnfv-clean
%{_var}/opt/opnfv/lib/common-functions.sh
%{_sysconfdir}/opnfv-apex/os-odl_l2-nofeature-ha.yaml
%{_sysconfdir}/opnfv-apex/os-odl_l2-sfc-ha.yaml
%{_sysconfdir}/opnfv-apex/os-odl_l3-nofeature-ha.yaml
%{_sysconfdir}/opnfv-apex/os-onos-nofeature-ha.yaml
%{_sysconfdir}/opnfv-apex/os-opencontrail-nofeature-ha.yaml
%{_sysconfdir}/opnfv-apex/network_settings.yaml
%doc %{_docdir}/opnfv/LICENSE.rst
%doc %{_docdir}/opnfv/installation-instructions.rst
%doc %{_docdir}/opnfv/installation-instructions.html
%doc %{_docdir}/opnfv/release-notes.rst
%doc %{_docdir}/opnfv/release-notes.html
%doc %{_docdir}/opnfv/deploy_settings.yaml.example
%doc %{_docdir}/opnfv/network_settings.yaml.example

%changelog
* Thu Jan 14 2016 Dan Radez <dradez@redhat.com> - 2.1-2
- Package Split
pan> .xres = 240, .yres = 320, .left_margin = 0, .right_margin = 31, .upper_margin = 15, .lower_margin = 0, .crtc_ss = 0x80150014, .crtc_ls = 0xa0fb00f7, .crtc_gs = 0xc0080007, .crtc_vpos_gs = 0x00080007, .crtc_rev = 0x0000000a, .crtc_dclk = 0x81700030, .crtc_gclk = 0x8015010f, .crtc_goe = 0x00000000, .pll_freq = 80, .pixclk_divider = 15, .pixclk_divider_rotated = 15, .pixclk_src = CLK_SRC_PLL, .sysclk_divider = 0, .sysclk_src = CLK_SRC_PLL, }; static struct w100_mode himalaya6_lcd_mode = { .xres = 240, .yres = 320, .left_margin = 9, .right_margin = 8, .upper_margin = 5, .lower_margin = 4, .crtc_ss = 0x80150014, .crtc_ls = 0xa0fb00f7, .crtc_gs = 0xc0080007, .crtc_vpos_gs = 0x00080007, .crtc_rev = 0x0000000a, .crtc_dclk = 0xa1700030, .crtc_gclk = 0x8015010f, .crtc_goe = 0x00000000, .pll_freq = 95, .pixclk_divider = 0xb, .pixclk_divider_rotated = 4, .pixclk_src = CLK_SRC_PLL, .sysclk_divider = 1, .sysclk_src = CLK_SRC_PLL, }; static struct w100_gpio_regs himalaya_w100_gpio_info = { .init_data1 = 0xffff0000, /* GPIO_DATA */ .gpio_dir1 = 0x00000000, /* GPIO_CNTL1 */ .gpio_oe1 = 0x003c0000, /* GPIO_CNTL2 */ .init_data2 = 0x00000000, /* GPIO_DATA2 */ .gpio_dir2 = 0x00000000, /* GPIO_CNTL3 */ .gpio_oe2 = 0x00000000, /* GPIO_CNTL4 */ }; static struct w100fb_mach_info himalaya_fb_info = { .num_modes = 1, .regs = &himalaya_lcd_regs, .gpio = &himalaya_w100_gpio_info, .xtal_freq = 16000000, }; static struct resource himalaya_fb_resources[] = { [0] = { .start = 0x08000000, .end = 0x08ffffff, .flags = IORESOURCE_MEM, }, }; static struct platform_device himalaya_fb_device = { .name = "w100fb", .id = -1, .dev = { .platform_data = &himalaya_fb_info, }, .num_resources = ARRAY_SIZE(himalaya_fb_resources), .resource = himalaya_fb_resources, }; /* ----------------------------------------------------------------------- */ static struct platform_device *devices[] __initdata = { &himalaya_fb_device, }; static void __init himalaya_lcd_init(void) { int himalaya_boardid; himalaya_boardid = 0x4; /* hardcoded (detection needs ASIC3 functions) */ printk(KERN_INFO "himalaya LCD Driver init. boardid=%d\n", himalaya_boardid); switch (himalaya_boardid) { case 0x4: himalaya_fb_info.modelist = &himalaya4_lcd_mode; break; case 0x6: himalaya_fb_info.modelist = &himalaya6_lcd_mode; break; default: printk(KERN_INFO "himalaya lcd_init: unknown boardid=%d. Using 0x4\n", himalaya_boardid); himalaya_fb_info.modelist = &himalaya4_lcd_mode; } } static void __init himalaya_init(void) { pxa_set_ffuart_info(NULL); pxa_set_btuart_info(NULL); pxa_set_stuart_info(NULL); himalaya_lcd_init(); platform_add_devices(devices, ARRAY_SIZE(devices)); } MACHINE_START(HIMALAYA, "HTC Himalaya") .atag_offset = 0x100, .map_io = pxa25x_map_io, .nr_irqs = PXA_NR_IRQS, .init_irq = pxa25x_init_irq, .handle_irq = pxa25x_handle_irq, .init_machine = himalaya_init, .init_time = pxa_timer_init, .restart = pxa_restart, MACHINE_END